package com.tbit.maintain.api;

import com.tbit.common.entity.pojo.dto.AddFaultDTO;
import com.tbit.common.entity.view.Result;
import com.tbit.maintain.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 上报故障
 * @author <a href="mailto:liu.haoxiang@tbit.com.cn">BUGXiang</a>
 * @version 1.0
 * @since 2025-5-20
 */
@FeignClient(name = ApiConstants.NAME)
public interface  AddFaultApi {

    String PREFIX = ApiConstants.PREFIX + "/fault";

    @PostMapping(value = PREFIX + "/add",produces = "application/json", consumes = "application/json")
    Result<Object> addFault(@RequestBody AddFaultDTO dto);
}
